package android.moodle;

import android.app.Activity;
import android.javaClasses.Transformer;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

import java.io.InputStream;

/**
 * Created by IntelliJ IDEA.
 * User: michelle
 * Date: 4/30/11
 * Time: 9:17 PM
 * To change this template use File | Settings | File Templates.
 */
public class HelpActivity extends Activity {
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.help);

        Transformer transform = new Transformer();
        try {
            TextView helpText = (TextView)findViewById(R.id.helptext);
            InputStream helpFile = getResources().openRawResource(R.raw.help);
            String strFile = transform.inputStreamToString(helpFile);
            helpText.setText(strFile);
        } catch (Exception e) {
            Log.e("changeToHelpScreen", e.toString());
        }
    }
}